/**
 * 
 */
package com.sl.log;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author lunshi
 * TODO
 * @创建时间 2020 2020年3月10日 下午3:13:47
 * @email:shilun217@qq.com
 */
@Configuration
public class PrintLogAutoConfiguration implements WebMvcConfigurer {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		
		registry.addInterceptor(new PrintLogInterceptor());
	}
}
